import request from '@/api/index.js';



export const uploadFile = (data = {},onUploadProgress) => {
    return request({
        headers: {
            'Content-Type': 'application/x-www-form-urlencoded'
        },
        url: '/upload',
        method: 'post',
        data: data,
        onUploadProgress
    })
}